/**
 * Created by onsen on 2017/4/5.
 */
var create_log = require('./log_factory');
var moment = require('moment');
var header = 'log';
var footer = '888';

exports.getBuf = function(secret_key, bid, uid, app_kind, bkey, step, content) {
    // return new Buffer(header + JSON.stringify(create_log.create_log(secret_key, bid, uid, app_kind, step, moment(Date.now()).format("YYYY-MM-DD HH:mm:ss"), bkey, content, Date.now())) + footer);
    return Buffer.from(header + JSON.stringify(create_log.create_log(secret_key, bid, uid, app_kind, step, moment(Date.now()).format("YYYY-MM-DD HH:mm:ss"), bkey, content, Date.now())) + footer);
}
